﻿#ifndef EXAMINTERFACE_H
#define EXAMINTERFACE_H
#include <QDialog>
#include <QTimer>
#include <QGridLayout>
#include <QTextEdit>
#include <QLabel>
#include <QRadioButton>
#include <QButtonGroup>
#include <QVector>
#include "answeritem.h"

class examInterface : public QDialog
{
    Q_OBJECT
public:
    examInterface(QWidget*parent=0);
    ~examInterface();

private:
    void initTimer();
    void initLayout();
    bool initTextEdit();
    void initButtons();

private slots:
    void updateTime();
    void getScore();

private:
    QTimer *timer;
    unsigned int timeGo;

    QGridLayout*layout;
    QTextEdit*textEdit;

    static int Qlines;//题数

    QVector<answeritem*> items;
    QVector<QButtonGroup*> buttonGroup;
    int line_per_num;

    //QVector<QLabel*> labels;
    //QButtonGroup*btnGroup;
    //QRadioButton*radioButtons[32];


};

#endif // EXAMINTERFACE_H
